function Person() {
    this.name = 'zhangsan'
    this.age = 15
    this.say = function () {
        console.log(this.age + this.name)
    }
}

Person.prototype.sex = 'male'
Person.prototype.speak = function() {
    console.log('hello mystic')
}

Person.setName = function(nName) {
    console.log(this.name)
}

let p = new Person()
console.log(p.name)
console.log(p.age)
p.say()
console.log(p.sex)
p.speak()

Person.setName()
console.log(p.name)

